#ifndef EMAILTOOL_H
#define EMAILTOOL_H

#include <QObject>
#include <functional>
#include "mytypes.h"
using namespace Yzty;
class EmailTool final:public QObject
{
public:
    static EmailTool* GetInstance(QObject* parent=nullptr);
    virtual ~EmailTool() override;

    std::function<void()> GetToolFunction(Yzty::EmailToolCode code);

private:
    QVector<Yzty::BaceInfor*> CheckEmailInfor();        //检查邮箱信息
                                                        /*使用Python解析eml文件*/

private:
    explicit EmailTool(QObject* parent=nullptr);
    static EmailTool* _instance;
};

#endif // EMAILTOOL_H
